package initialize

import (
	"github.com/flipped-aurora/gin-vue-admin/server/router"
	"github.com/gin-gonic/gin"
)

func holder(routers ...*gin.RouterGroup) {
	_ = routers
	_ = router.RouterGroupApp
}
func initBizRouter(routers ...*gin.RouterGroup) {
	privateGroup := routers[0]
	publicGroup := routers[1]
	holder(publicGroup, privateGroup)
	{
		productRouter := router.RouterGroupApp.Product
		productRouter.InitProductRouter(privateGroup, publicGroup)
	}
	{
		productsRouter := router.RouterGroupApp.Products
		productsRouter.InitProductRouter(privateGroup, publicGroup)
	}
	{
		classeyRouter := router.RouterGroupApp.Classey
		classeyRouter.InitCategoryRouter(privateGroup, publicGroup)
	}
	{
		brandRouter := router.RouterGroupApp.Brand
		brandRouter.InitBrandRouter(privateGroup, publicGroup)
	}
	{
		orderRouter := router.RouterGroupApp.Order
		orderRouter.InitOrderRouter(privateGroup, publicGroup)
	}
	{
		seckillRouter := router.RouterGroupApp.Seckill
		seckillRouter.InitSeckillActivityRouter(privateGroup, publicGroup)
	} // 占位方法，保证文件可以正确加载，避免go空变量检测报错，请勿删除。
	{
		after_sale_orderRouter := router.RouterGroupApp.After_sale_order
		after_sale_orderRouter.InitAfterSaleOrderRouter(privateGroup, publicGroup)
	}
}
